package com.hello123.controller.demo;

import org.springframework.stereotype.Controller;
import org.springframework.ui.Model;
import org.springframework.web.bind.annotation.RequestMapping;

/**
 * @since 2020/01/05 12:27:35
 */
@Controller
public class HelloController {

	/**
	 * html页面
	 * 
	 * @param model
	 * @return
	 * @since 2020/01/05 13:59:12
	 */
	@RequestMapping("/hello")
	public String hello(Model model) {
		model.addAttribute("msg", "World");
		return "html/hello";
	}

	/**
	 * jsp页面
	 * 
	 * @param model
	 * @return
	 * @since 2020/01/05 13:59:19
	 */
	@RequestMapping("/welcome")
	public String welcome(Model model) {
		model.addAttribute("msg", "World");
		return "jsp/welcome";
	}

}
